class AnonymousFeedbackRequest {
  final String title;
  final String content;
  final String? category;
  final String? priority;
  final String? contactEmail;
  final String? contactPhone;
  final List<String>? attachments;

  const AnonymousFeedbackRequest({
    required this.title,
    required this.content,
    this.category,
    this.priority,
    this.contactEmail,
    this.contactPhone,
    this.attachments,
  });

  Map<String, dynamic> toJson() => {
    'title': title,
    'content': content,
    if (category != null) 'category': category,
    if (priority != null) 'priority': priority,
    if (contactEmail != null) 'contact_email': contactEmail,
    if (contactPhone != null) 'contact_phone': contactPhone,
    if (attachments != null) 'attachments': attachments,
  };
}